import request from '@/utils/request'

// 获取信息
export function queryBloodData(instance, dispatchid) {
  // dispatch = '102756'
  return request({
    url: `findchipsByInstance/${instance}/mission/${dispatchid}`,
    method: 'get',
    // params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 获取取值范围接口
export function queryMyocardialenzymesRange() {
  return request({
    url: '/requestMenu/myocardialenzymes',
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
// 生物标识物
export function queryMyocardialenzymes(type) {
  return request({
    url: `/requestMenu/${type}`,
    method: 'get',
    // params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

// 血液检查保存
export function saveBloodnew(data) {
  return request({
    url: '/save/bloodnewForApp',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 查询所有使用中
export function getAllOnUseTesttarget(data) {
  return request({
    url: '/getAllOnUseTesttarget',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
